-- GENERATED SPELL FOR [Captain Edward Hanes] --


function spell0_17712(pUnit, Event) --@The Captain\'s Kiss,n/a--
pUnit:FullCastSpellOnTarget(31319,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17712', 596, 1)
end

function Sorts_17712(pUnit, Event)
local choix_sorts_17712 = math.random(0, 0)
if choix_sorts_17712 == 0 then
pUnit:RegisterEvent('spell0_17712', 1, 1)
end
end

function mob17712_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17712', math.random(1500, 3000), 1)
end

function mob17712_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17712_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17712_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17712, 1, 'mob17712_Action')
RegisterUnitEvent(17712, 2, 'mob17712_Leave')
RegisterUnitEvent(17712, 3, 'mob17712_Kill')
RegisterUnitEvent(17712, 4, 'mob17712_Die')
